﻿
namespace Admin.NET.Application.Service;


public class SysOrgAllOutput
{
    public long TenantId { get; set; }


    public long Id { get; set; }

    /// <summary>
    /// 父Id
    /// </summary>
    public long Pid { get; set; }

    /// <summary>
    /// 名称
    /// </summary>
    public virtual string Name { get; set; }

    /// <summary>
    /// 编码
    /// </summary>
    public string? Code { get; set; }

    /// <summary>
    /// 级别
    /// </summary>
    public int? Level { get; set; }

    /// <summary>
    /// 机构类型-数据字典
    /// </summary>
    public virtual string? Type { get; set; }

    /// <summary>
    /// 负责人Id
    /// </summary>
    public long? DirectorId { get; set; }

    /// <summary>
    /// 排序
    /// </summary>
    public int OrderNo { get; set; } = 100;

    /// <summary>
    /// 状态
    /// </summary>
    public StatusEnum Status { get; set; } = StatusEnum.Enable;

    /// <summary>
    /// 是否禁止选中,使用
    /// </summary>
    public bool IsEnabled { get { return Status == StatusEnum.Enable ? true : false; } }
}
